import { http, HttpResponse } from 'msw'
import Mock from 'mockjs'
// 重置密码
export const resetPassword = http.get('/data/ed/user/resetPassword/*', () => {
  return HttpResponse.json({
    success: true,
    errorCode: '',
    errorMessage: '',
  })
})
// 更改密码
export const changePassword = http.put('/data/ed/user/changePassword', () => {
  return HttpResponse.json({
    success: true,
    errorCode: '',
    errorMessage: '',
    data: true,
  })
})
// 校验原始密码
export const validateOldPassword = http.post(
  '/data/ed/user/validateOldPassword',
  () => {
    return HttpResponse.json({
      success: true,
      errorCode: '',
      errorMessage: '',
      data: true,
    })
  },
)
